<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./vue.js"></script>
    <style>
        .main {
            background-color: springgreen;
            width: 200px;
            margin-left: 300px;
            transform: rotate(-30deg)
        }
        #app{
            position: relative;
        }
        div>button{
            position: absolute;
            top: 0;
            right: 0;
        }
       #aa {
            position: absolute;
            top: 30px;
            right: 30px;
            border: 1px solid blue;
            background-color: yellowgreen;
        }
    </style>
</head>

<body>
    <div id="app">

        <div class="main">
            姓名:{{card.name}} <br><br> 职位:{{card.major}}
            <br><br> 地址:{{card.address}}
            <br><br> 联系方式:{{card.phone}}
            <br><br> qq:{{card.qq}}
            <br><br>
        </div>
        <button @click="isShow=!isShow">编辑</button>

        <!--事件监听-->
        <edit-view id="aa" @changedata="getNewData" v-show="isShow" :card="card"></edit-view>


    </div>
    <script src="./index.js"></script>
</body>

</html>